#ifndef LOG_H
#define LOG_H

#include <QWidget>
#include <QTcpServer>
#include <QTcpSocket>
#include "reg.h"

namespace Ui {
class Log;
}

class Log : public QWidget
{
    Q_OBJECT
    friend class Reg;

public:
    explicit Log(QWidget *parent = nullptr);
    ~Log();
    QTcpServer mserver;
    QTcpSocket msocket;


private slots:
    void on_pushButton_clicked();
    void toreg();
    void on_pushButton_2_clicked();
    void read_data();

private:
    Ui::Log *ui;
    Reg R;
};

#endif // LOG_H
